Skip to content

[CI] Add coverage failed tips and rerun #72392

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Apr 24, 2025

Conversation

swgu98
Copy link
Contributor

@swgu98 swgu98 commented Apr 21, 2025

PR Category

Environment Adaptation

PR Types

Others

Description

添加coverage覆盖率不达标提示、rerun,删除压缩解压-p参数导致解压build目录需要root权限
pcard-67164

Copy link

paddle-bot bot commented Apr 21, 2025

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@swgu98 swgu98 changed the title [CI] coverage tips [CI] Add coverage failed tips and rerun Apr 21, 2025
run: |
if [ "${{ env.COVERAGE_EXIT_CODE }}" -ne 0 ]; then
echo "Coverage failed"
echo "Coverage check failed, single test has passed, please do not rerun, check whether the code is fully executed and recommit."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "Coverage check failed, single test has passed, please do not rerun, check whether the code is fully executed and recommit."
echo "Coverage check failed, unit test has passed, please do not rerun, check whether the code is fully executed and recommit."

展示下当前覆盖率是多少,但是没达到要求的 90%

if [ "${{ env.COVERAGE_EXIT_CODE }}" -ne 0 ]; then
echo "Coverage failed"
echo "Coverage check failed, unit tests have all passed, please do not rerun, check whether the code has been fully executed and recommit."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这块能拿到覆盖率结果吗,展示下当前覆盖率是多少?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coverage_judge.sh里调的py会展示这个

@codecov-commenter
Copy link

codecov-commenter commented Apr 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (develop@7a4efda). Learn more about missing BASE report.

Current head 047f483 differs from pull request most recent head 825e10f

Please upload reports for the commit 825e10f to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop   #72392   +/-   ##
==========================================
  Coverage           ?        0           
==========================================
  Files              ?        0           
  Lines              ?        0           
  Branches           ?        0           
==========================================
  Hits               ?        0           
  Misses             ?        0           
  Partials           ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTMeow 🐾

@SigureMo SigureMo merged commit f67da16 into PaddlePaddle:develop Apr 24, 2025
42 of 43 checks passed
@swgu98 swgu98 deleted the coverage-tips branch April 24, 2025 07:47
YqGe585 pushed a commit to YqGe585/Paddle that referenced this pull request May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants